home *** CD-ROM | disk | FTP | other *** search
/ Freelog 46 / Freelog046.iso / Alu / Celestia / Win32LoresTex / celestia-lores-win32-1.3.0.exe / {app} / shaders / simple_arb.vp < prev    next >
Text File  |  2003-02-17  |  508b  |  22 lines

  1. !!ARBvp1.0
  2.  
  3. # Transform the position by the modelview/projection matrix, and that's it!
  4.  
  5. ATTRIB iPos          = vertex.position;
  6. ATTRIB iTex0         = vertex.texcoord[0];
  7. PARAM  mvp[4]        = { state.matrix.mvp };
  8. OUTPUT oPos          = result.position;
  9. OUTPUT oTex0         = result.texcoord[0];
  10.  
  11. # Transform the vertex by the modelview matrix
  12. DP4   oPos.x, mvp[0], iPos;
  13. DP4   oPos.y, mvp[1], iPos;
  14. DP4   oPos.z, mvp[2], iPos;
  15. DP4   oPos.w, mvp[3], iPos;
  16.  
  17. # Output the texture
  18. MOV   oTex0, iTex0;
  19.  
  20. END
  21.  
  22.